VERSION = 1001


# 读取全部
def read(file_):
    with open(file_) as file:  # 默认为'r'
        return file.read()


# 行读取
def read_lines(file_):
    with open(file_) as file:
        return file.readlines()
        # for line in file.readlines():
        # print(line.strip())  # 把末尾的'\n'删掉

# read, read(size),readline(size=-1)


def write(file_, content):
    with open(file_, 'w', encoding='utf-8') as file:
        file.write(content)
